% Define approximate molar mass of components
molmass_casamino = 540; % g/L

% Total carbon molar mass
molmass_NZCasePlus = 125/molmass_casamino;
close all;
%% 37C NZCasePlus
tempmat = monod_maxOD_NZCasePlus_37C;
smat = size(tempmat);

conc1 = tempmat([1:5],1);
odmax1 = nanmean(tempmat([1:5],2:4),2);
odmax_err1 = nanstd(tempmat([1:5],2:4),0,2);

% Linear scale
figure;
errorbar(conc1/100*molmass_NZCasePlus*1000,odmax1,odmax_err1, 'ko-');

set(gcf, 'position', [0 0 400 300])
set(gca, 'fontsize', 20);
xlabel('Concentration (mM)')
ylabel('Max OD600')
box off;
xlim([0 125]);

% Log scale
figure;
errorbar(log(conc1/100*molmass_NZCasePlus*1000),log(odmax1),odmax_err1./odmax1, 'ko');
set(gcf, 'position', [0 0 400 300])
set(gca, 'fontsize', 20);
xlabel('Log concentration (mM)')
ylabel('Log max OD600')
box off;
